package com.yljk.yljkproject.modelcallback;

import android.app.Activity;
import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.baidu.mobstat.StatService;
import com.yilijk.base.utils.ALog;
import com.yljk.servicemanager.constants.RouterApi;
import com.yljk.servicemanager.interfaceapi.BaiduApi;

/**
 * create by shicheng
 *
 *  百度统计回调实现
 *
 *  BaiDu Count callback
 */
@Route(path = RouterApi.BaiduImpl)
public
class BaiduBackImpl implements BaiduApi {

    @Override
    public void init(Context context) {

    }

    @Override
    public void onResume(Activity activity) {
        StatService.onResume(activity);
        ALog.i("百度统计onResume",activity.getClass().toString());
    }

    @Override
    public void onPause(Activity activity) {
        StatService.onPause(activity);
        ALog.i("百度统计onPause",activity.getClass().toString());
    }

    @Override
    public void onPageStart(Activity activity,String s) {
        StatService.onPageStart(activity,s);
        ALog.i("百度统计onPageStart",s);
    }

    @Override
    public void onPageEnd(Activity activity,String s) {
        StatService.onPageEnd(activity,s);
        ALog.i("百度统计onPageEnd",s);
    }

    @Override
    public void onEvent(Activity activity) {
        StatService.onEvent(activity,"","");
    }
    @Override
    public void onEventStart(Activity activity) {
        StatService.onEventStart(activity,"","");
    }
    @Override
    public void onEventEnd(Activity activity) {
        StatService.onEventEnd(activity,"","");
    }
}
